

// actionCreators.js
import {
  ADD_NUMBER,
  SUB_NUMBER
} from './constants.js'
export function addAction(num){
  return {
    type: ADD_NUMBER,
    num
  }
}
export const addAction1 = (num) => {
  return {
    type: ADD_NUMBER,
    num
  }
} 
export const subAction = num => ({
  type: SUB_NUMBER,
  num
})